
var singleCheckMenuTreeMenuId;
var singleCheckMenuTreeMenuName;
var singleCheckMenuTree;
var singleCheckMenuTreeParentIndex;
function showSingleCheckMenuTreeParent(){
	showLayer(getSingleCheckMenuTreeParentIndex());
	if(singleCheckMenuTreeMenuName != "" && singleCheckMenuTreeMenuName.length > 0){
		var ifra = $(window.frames["layui-layer-iframe"+getSingleCheckMenuTreeParentIndex()].document);
		ifra.find("#menuName").val(singleCheckMenuTreeMenuName);
		ifra.find("#menuId").val(singleCheckMenuTreeMenuId);
	}
	setSingleCheckMenuTreeMenuId("");
	setSingleCheckMenuTreeMenuName("");
}

function hideLayer(index){
	layer.style(index, {
	  display:"none"
	});
}
function showLayer(index){
	layer.style(index, {
		  display:"block"
	});
}
function setSingleCheckMenuTreeParentIndex(index){
	singleCheckMenuTreeParentIndex = index;
}
function getSingleCheckMenuTreeParentIndex(){
	return singleCheckMenuTreeParentIndex;
}
function setSingleCheckMenuTree(index){
	singleCheckMenuTree = index;
}
function getSingleCheckMenuTree(){
	return singleCheckMenuTree;
}
function setSingleCheckMenuTreeMenuName(menuName){
	singleCheckMenuTreeMenuName = menuName;
}
function getSingleCheckMenuTreeMenuId(){
	return singleCheckMenuTreeMenuId;
}
function setSingleCheckMenuTreeMenuId(menuId){
	singleCheckMenuTreeMenuId = menuId;
}
function getSingleCheckMenuTreeMenuName(){
	return singleCheckMenuTreeMenuName;
}